package ru.fivestarter.multileveledcache.cachecreator;

import ru.fivestarter.multileveledcache.cache.Cache;
import ru.fivestarter.multileveledcache.cache.MemoryCache;
import ru.fivestarter.multileveledcache.strategy.LRU;
import ru.fivestarter.multileveledcache.strategy.StrategyVariation;


public class MemoryCacheCreator implements CacheCreator {
    @Override
    public Cache createCache(StrategyVariation strategyVariation,int size) {
        switch (strategyVariation) {
            case LRU:
                return new LRU(new MemoryCache(),size);
            default:
                return null;
        }
    
    }
}
